
sum = 0
for x in range(101):
    print(x)
    sum += x
print(sum)

# 偶数求和，2是步长
sum1 = 0
for x in range(0, 101, 2):
    print(x)
    sum +=x
print(sum)